<!DOCTYPE html 
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>OnlineTV</title>
        <link href="resources/css/index.css" rel="stylesheet" type="text/css" />
        <!--<link rel="icon" href="/icon.png" type="image/x-icon"> -->
        <!--<link rel="shortcut icon" href="./icon.png" type="image/x-icon"> -->
    </head>
    <h:body>
        <ui:include src="header.xhtml">
            <ui:param name="" value=""/>
        </ui:include>   
        <div class="wrapper">
            <table border="0">
                <tr>
                    <th scope="col" class="menu"> 
                        <ui:include src="menu.xhtml">
                            <ui:param name="" value=""/>
                        </ui:include>
                    </th>
                    <th scope="col" class="postsbk"> 
                        <div class="registerform" align="left"><font size="5" color="818181">Log in</font>
                            <h:form id="loginForm">
                                <div align="center" style="border-top: #444444 dotted 1px; ">
                                    <h:message for="loginForm" infoStyle="color: green;" errorStyle="color: red;"/>
                                    <div style="margin:10px; max-width: 265px;" align="right"> 
                                        Login:
                                        <h:inputText id="login" value="#{user.login}" />
                                        <br/>
                                        <h:message for="login" style="color: red"/>
                                        <br/>
                                        Password:
                                        <h:inputSecret id="password" value="#{user.password}" />  
                                        <br/>
                                        <h:message for="password" style="color: red"/>
                                        <br/>
                                    </div>  
                                </div>
                                <div style="width:100%" align="right">
                                    <h:commandButton value="Login" action="#{user.login()}"/>
                                </div>
                            </h:form>
                        </div>
                    </th>
                </tr>
            </table>
        </div>
        <ui:include src="footer.xhtml">
            <ui:param name="" value=""/>
        </ui:include>     
    </h:body>
</html>